package com.aggeek.springbootlearning;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

/**
 * author:liuao
 * description:
 * Date: create on 17:47 2017/12/6
 * modify by:
 */
public class RedisUtil {

    private static JedisPool jedisPool = new JedisPool();

    public static Jedis  getJedis(){

        return jedisPool.getResource();

    }

    public static Jedis getJedis(String ip,int port){
        return  new JedisPool("ip",port).getResource();
    }

}
